<template>
  <el-table
    :data="datasource"
    height="420"
    border
    style="width: 100%">
    <el-table-column
      prop="inp_name"
      label="类型"
      align="center">
    </el-table-column>
    <el-table-column
      prop="item_name"
      label="项目名称"
      min-width="180"
      align="center">
    </el-table-column>
    <el-table-column
      prop="price"
      align="center"
      label="单价">
    </el-table-column>
    <el-table-column
      prop="f_number"
      align="center"
      label="数量">
    </el-table-column>
    <el-table-column
      prop="amount"
      align="center"
      label="金额">
    </el-table-column>
  </el-table>
</template>

<script>
export default {
  name: 'Table',
  data () {
    return {
      data: []
    }
  },
  methods: {
    callback (key) {}
  },
  props: ['datasource']
}
</script>

<style lang="stylus" scoped></style>
